﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="AppraisalStatistics.aspx.cs" Inherits="AppraisalManager_AttendanceStatistics" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .branchtop
        {
            margin: 10px 50px;
            text-align: left;
            font-size: 12px;
        }
        .lbBranch
        {
            font-size: 14px;
            font-weight: bold;
            background-image: url('../imges/daohangbeijing1.jpg');
            background-repeat: no-repeat;
            text-align: center;
            margin: 0;
            color: White;
            padding-top: 7px;
            height: 22px;
            width: 110px;
        }
        .btnBranch
        {
            width: auto;
            height: 20px;
            background-color: #ccffff;
            border: 1px solid #000099;
            color: #000099;
        }
        hr
        {
            height: 1px;
            margin-left: 45px;
            color: Blue;
            width: 804px;
        }
        .txt
        {
            border: 1px solid #6699FF;
            color: Blue;
        }
        .grid
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px; font-size: 14px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            考勤统计</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr />
        <div style="text-align: left; margin: 7px 100px; width: 740px; height: 30px; border: 1px solid #ccc;">
            用户名：<asp:TextBox ID="txtName" CssClass="txt" runat="server" Height="20px" Width="90px"></asp:TextBox>&nbsp;
            月份：<asp:DropDownList ID="ddlMonth" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="Id" DataValueField="Id">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:OAConnectionString %>" 
                SelectCommand="SELECT * FROM [Num]"></asp:SqlDataSource>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCheck" CssClass="btnBranch" runat="server" Text="查询" 
                onclick="btnCheck_Click" />
        </div>
        <div style="text-align: left; margin: 7px 100px;">
            <asp:GridView ID="GridView1" runat="server" Width="740px" AutoGenerateColumns="False"
                BorderColor="#009999" Height="98px" PageSize="3" onrowcommand="GridView1_RowCommand" 
                >
                <AlternatingRowStyle BackColor="#CCFFCC" />
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="员工" />
                    <asp:BoundField DataField="Num" HeaderText="月份" />
                    <asp:BoundField DataField="Off" HeaderText="请假小时数" />
                    <asp:BoundField DataField="Over" HeaderText="加班小时数" />
                    <asp:TemplateField HeaderText="图表统计">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/imges/modify.png" CommandName="tongji"  />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#66CCFD" ForeColor="White" Height="25px" 
                    CssClass="grid" />
                <PagerSettings FirstPageText="第1页" LastPageText="尾页" NextPageText="下一页" 
                    PreviousPageText="上一页" />
                <RowStyle CssClass="grid" />
            </asp:GridView>
            <div>

            </div>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" 
                CustomInfoHTML="第 %CurrentPageIndex% 页/共 %PageCount%页" 
                CustomInfoTextAlign="Right" Direction="LeftToRight" FirstPageText="首页" 
                LastPageText="尾页" MoreButtonType="Image" NextPageText="下一页" 
                onpagechanged="AspNetPager1_PageChanged" PageSize="9" 
                PagingButtonLayoutType="Span" PrevPageText="上一页" ShowCustomInfoSection="Left" 
                ShowMoreButtons="False" ShowPageIndex="False" ShowPageIndexBox="Always" 
                SubmitButtonText="GO" UrlPageIndexName="pageIndex" UrlPageSizeName="pageSize" 
                UrlPaging="True">
            </webdiyer:AspNetPager>
        </div>
    </div>
</asp:Content>
